<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GimpParasite: GIMP 3 Base Library Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
<link rel="home" href="index.html" title="GIMP 3 Base Library Reference Manual">
<link rel="up" href="pt01.html" title="Part I. GIMP Base Library">
<link rel="prev" href="libgimpbase3-gimprectangle.html" title="gimprectangle">
<link rel="next" href="libgimpbase3-gimpparasiteio.html" title="gimpparasiteio">
<meta name="generator" content="GTK-Doc V1.33.0 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#GimpParasite.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
                  <a href="#GimpParasite.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="pt01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="libgimpbase3-gimprectangle.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="libgimpbase3-gimpparasiteio.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="GimpParasite"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GimpParasite.top_of_page"></a>GimpParasite</span></h2>
<p>GimpParasite — Arbitrary pieces of data which can be attached
to various GIMP objects.</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="GimpParasite.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_proto_type">
<col class="functions_proto_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<a class="link" href="GimpParasite.html" title="GimpParasite"><span class="returnvalue">GimpParasite</span></a> *
</td>
<td class="function_name">
<a class="link" href="GimpParasite.html#gimp-parasite-new" title="gimp_parasite_new ()">gimp_parasite_new</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GimpParasite.html#gimp-parasite-free" title="gimp_parasite_free ()">gimp_parasite_free</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GimpParasite.html" title="GimpParasite"><span class="returnvalue">GimpParasite</span></a> *
</td>
<td class="function_name">
<a class="link" href="GimpParasite.html#gimp-parasite-copy" title="gimp_parasite_copy ()">gimp_parasite_copy</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GimpParasite.html#gimp-parasite-compare" title="gimp_parasite_compare ()">gimp_parasite_compare</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GimpParasite.html#gimp-parasite-is-type" title="gimp_parasite_is_type ()">gimp_parasite_is_type</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GimpParasite.html#gimp-parasite-is-persistent" title="gimp_parasite_is_persistent ()">gimp_parasite_is_persistent</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GimpParasite.html#gimp-parasite-is-undoable" title="gimp_parasite_is_undoable ()">gimp_parasite_is_undoable</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GimpParasite.html#gimp-parasite-has-flag" title="gimp_parasite_has_flag ()">gimp_parasite_has_flag</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gulong</span>
</td>
<td class="function_name">
<a class="link" href="GimpParasite.html#gimp-parasite-flags" title="gimp_parasite_flags ()">gimp_parasite_flags</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <span class="returnvalue">gchar</span> *
</td>
<td class="function_name">
<a class="link" href="GimpParasite.html#gimp-parasite-name" title="gimp_parasite_name ()">gimp_parasite_name</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gconstpointer</span>
</td>
<td class="function_name">
<a class="link" href="GimpParasite.html#gimp-parasite-data" title="gimp_parasite_data ()">gimp_parasite_data</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">glong</span>
</td>
<td class="function_name">
<a class="link" href="GimpParasite.html#gimp-parasite-data-size" title="gimp_parasite_data_size ()">gimp_parasite_data_size</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="GimpParasite.html#GIMP-IS-PARAM-SPEC-PARASITE:CAPS" title="GIMP_IS_PARAM_SPEC_PARASITE()">GIMP_IS_PARAM_SPEC_PARASITE</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">GParamSpec</span> *
</td>
<td class="function_name">
<a class="link" href="GimpParasite.html#gimp-param-spec-parasite" title="gimp_param_spec_parasite ()">gimp_param_spec_parasite</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="GimpParasite.html#GIMP-VALUE-HOLDS-PARASITE:CAPS" title="GIMP_VALUE_HOLDS_PARASITE()">GIMP_VALUE_HOLDS_PARASITE</a><span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GimpParasite.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="other_proto_type">
<col class="other_proto_name">
</colgroup>
<tbody>
<tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="GimpParasite.html#GimpParasite-struct" title="GimpParasite">GimpParasite</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GimpParasite.html#GIMP-PARASITE-PERSISTENT:CAPS" title="GIMP_PARASITE_PERSISTENT">GIMP_PARASITE_PERSISTENT</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GimpParasite.html#GIMP-PARASITE-UNDOABLE:CAPS" title="GIMP_PARASITE_UNDOABLE">GIMP_PARASITE_UNDOABLE</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GimpParasite.html#GIMP-PARASITE-ATTACH-PARENT:CAPS" title="GIMP_PARASITE_ATTACH_PARENT">GIMP_PARASITE_ATTACH_PARENT</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GimpParasite.html#GIMP-PARASITE-PARENT-PERSISTENT:CAPS" title="GIMP_PARASITE_PARENT_PERSISTENT">GIMP_PARASITE_PARENT_PERSISTENT</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GimpParasite.html#GIMP-PARASITE-PARENT-UNDOABLE:CAPS" title="GIMP_PARASITE_PARENT_UNDOABLE">GIMP_PARASITE_PARENT_UNDOABLE</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GimpParasite.html#GIMP-PARASITE-ATTACH-GRANDPARENT:CAPS" title="GIMP_PARASITE_ATTACH_GRANDPARENT">GIMP_PARASITE_ATTACH_GRANDPARENT</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GimpParasite.html#GIMP-PARASITE-GRANDPARENT-PERSISTENT:CAPS" title="GIMP_PARASITE_GRANDPARENT_PERSISTENT">GIMP_PARASITE_GRANDPARENT_PERSISTENT</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GimpParasite.html#GIMP-PARASITE-GRANDPARENT-UNDOABLE:CAPS" title="GIMP_PARASITE_GRANDPARENT_UNDOABLE">GIMP_PARASITE_GRANDPARENT_UNDOABLE</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GimpParasite.html#GIMP-TYPE-PARASITE:CAPS" title="GIMP_TYPE_PARASITE">GIMP_TYPE_PARASITE</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GimpParasite.html#GIMP-TYPE-PARAM-PARASITE:CAPS" title="GIMP_TYPE_PARAM_PARASITE">GIMP_TYPE_PARAM_PARASITE</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GimpParasite.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen">    <a href="/local/head/share/gtk-doc/html/gobject/gobject-Boxed-Types.html">GBoxed</a>
    <span class="lineart">╰──</span> GimpParasite
</pre>
</div>
<div class="refsect1">
<a name="GimpParasite.description"></a><h2>Description</h2>
<p>Arbitrary pieces of data which can be attached to various GIMP objects.</p>
</div>
<div class="refsect1">
<a name="GimpParasite.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="gimp-parasite-new"></a><h3>gimp_parasite_new ()</h3>
<pre class="programlisting"><a class="link" href="GimpParasite.html" title="GimpParasite"><span class="returnvalue">GimpParasite</span></a> *
gimp_parasite_new (<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
                   <em class="parameter"><code><span class="type">guint32</span> flags</code></em>,
                   <em class="parameter"><code><span class="type">guint32</span> size</code></em>,
                   <em class="parameter"><code><span class="type">gconstpointer</span> data</code></em>);</pre>
<p>Creates a new parasite and save <em class="parameter"><code>data</code></em>
 which may be a proper text (in
which case you may want to set <em class="parameter"><code>size</code></em>
 as strlen(<em class="parameter"><code>data</code></em>
) + 1) or not.</p>
<div class="refsect3">
<a name="gimp-parasite-new.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>name</p></td>
<td class="parameter_description"><p>the new <a class="link" href="GimpParasite.html" title="GimpParasite"><span class="type">GimpParasite</span></a> name.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>flags</p></td>
<td class="parameter_description"><p>see libgimpbase/gimpparasite.h macros.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>size</p></td>
<td class="parameter_description"><p>the size of <em class="parameter"><code>data</code></em>
, including a terminal <code class="literal">NULL</code> byte if needed.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>data</p></td>
<td class="parameter_description"><p>the data to save in a parasite. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-parasite-new.returns"></a><h4>Returns</h4>
<p>a new <a class="link" href="GimpParasite.html" title="GimpParasite"><span class="type">GimpParasite</span></a>. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gimp-parasite-free"></a><h3>gimp_parasite_free ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gimp_parasite_free (<em class="parameter"><code><a class="link" href="GimpParasite.html" title="GimpParasite"><span class="type">GimpParasite</span></a> *parasite</code></em>);</pre>
<p>Free <em class="parameter"><code>parasite</code></em>
's dynamically allocated memory.</p>
<div class="refsect3">
<a name="gimp-parasite-free.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>parasite</p></td>
<td class="parameter_description"><p>a <a class="link" href="GimpParasite.html" title="GimpParasite"><span class="type">GimpParasite</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gimp-parasite-copy"></a><h3>gimp_parasite_copy ()</h3>
<pre class="programlisting"><a class="link" href="GimpParasite.html" title="GimpParasite"><span class="returnvalue">GimpParasite</span></a> *
gimp_parasite_copy (<em class="parameter"><code>const <a class="link" href="GimpParasite.html" title="GimpParasite"><span class="type">GimpParasite</span></a> *parasite</code></em>);</pre>
<p>Create a new parasite with all the same values.</p>
<div class="refsect3">
<a name="gimp-parasite-copy.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>parasite</p></td>
<td class="parameter_description"><p>a <a class="link" href="GimpParasite.html" title="GimpParasite"><span class="type">GimpParasite</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-parasite-copy.returns"></a><h4>Returns</h4>
<p>a newly allocated <a class="link" href="GimpParasite.html" title="GimpParasite"><span class="type">GimpParasite</span></a> with same contents. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gimp-parasite-compare"></a><h3>gimp_parasite_compare ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_parasite_compare (<em class="parameter"><code>const <a class="link" href="GimpParasite.html" title="GimpParasite"><span class="type">GimpParasite</span></a> *a</code></em>,
                       <em class="parameter"><code>const <a class="link" href="GimpParasite.html" title="GimpParasite"><span class="type">GimpParasite</span></a> *b</code></em>);</pre>
<p>Compare parasite's contents.</p>
<div class="refsect3">
<a name="gimp-parasite-compare.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>a</p></td>
<td class="parameter_description"><p>a <a class="link" href="GimpParasite.html" title="GimpParasite"><span class="type">GimpParasite</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>b</p></td>
<td class="parameter_description"><p>a <a class="link" href="GimpParasite.html" title="GimpParasite"><span class="type">GimpParasite</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-parasite-compare.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if <em class="parameter"><code>a</code></em>
and <em class="parameter"><code>b</code></em>
have same contents, <code class="literal">FALSE</code> otherwise.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gimp-parasite-is-type"></a><h3>gimp_parasite_is_type ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_parasite_is_type (<em class="parameter"><code>const <a class="link" href="GimpParasite.html" title="GimpParasite"><span class="type">GimpParasite</span></a> *parasite</code></em>,
                       <em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>);</pre>
<p>Compare parasite's names.</p>
<div class="refsect3">
<a name="gimp-parasite-is-type.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>parasite</p></td>
<td class="parameter_description"><p>a <a class="link" href="GimpParasite.html" title="GimpParasite"><span class="type">GimpParasite</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>name</p></td>
<td class="parameter_description"><p>a parasite name.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-parasite-is-type.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if <em class="parameter"><code>parasite</code></em>
is named <em class="parameter"><code>name</code></em>
, <code class="literal">FALSE</code> otherwise.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gimp-parasite-is-persistent"></a><h3>gimp_parasite_is_persistent ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_parasite_is_persistent (<em class="parameter"><code>const <a class="link" href="GimpParasite.html" title="GimpParasite"><span class="type">GimpParasite</span></a> *parasite</code></em>);</pre>
<div class="refsect3">
<a name="gimp-parasite-is-persistent.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>parasite</p></td>
<td class="parameter_description"><p>a <a class="link" href="GimpParasite.html" title="GimpParasite"><span class="type">GimpParasite</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-parasite-is-persistent.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if <em class="parameter"><code>parasite</code></em>
is persistent, <code class="literal">FALSE</code> otherwise.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gimp-parasite-is-undoable"></a><h3>gimp_parasite_is_undoable ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_parasite_is_undoable (<em class="parameter"><code>const <a class="link" href="GimpParasite.html" title="GimpParasite"><span class="type">GimpParasite</span></a> *parasite</code></em>);</pre>
<div class="refsect3">
<a name="gimp-parasite-is-undoable.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>parasite</p></td>
<td class="parameter_description"><p>a <a class="link" href="GimpParasite.html" title="GimpParasite"><span class="type">GimpParasite</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-parasite-is-undoable.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if <em class="parameter"><code>parasite</code></em>
is undoable, <code class="literal">FALSE</code> otherwise.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gimp-parasite-has-flag"></a><h3>gimp_parasite_has_flag ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_parasite_has_flag (<em class="parameter"><code>const <a class="link" href="GimpParasite.html" title="GimpParasite"><span class="type">GimpParasite</span></a> *parasite</code></em>,
                        <em class="parameter"><code><span class="type">gulong</span> flag</code></em>);</pre>
<div class="refsect3">
<a name="gimp-parasite-has-flag.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>parasite</p></td>
<td class="parameter_description"><p>a <a class="link" href="GimpParasite.html" title="GimpParasite"><span class="type">GimpParasite</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>flag</p></td>
<td class="parameter_description"><p>a parasite flag</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-parasite-has-flag.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if <em class="parameter"><code>parasite</code></em>
has <em class="parameter"><code>flag</code></em>
set, <code class="literal">FALSE</code> otherwise.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gimp-parasite-flags"></a><h3>gimp_parasite_flags ()</h3>
<pre class="programlisting"><span class="returnvalue">gulong</span>
gimp_parasite_flags (<em class="parameter"><code>const <a class="link" href="GimpParasite.html" title="GimpParasite"><span class="type">GimpParasite</span></a> *parasite</code></em>);</pre>
<div class="refsect3">
<a name="gimp-parasite-flags.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>parasite</p></td>
<td class="parameter_description"><p>a <a class="link" href="GimpParasite.html" title="GimpParasite"><span class="type">GimpParasite</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-parasite-flags.returns"></a><h4>Returns</h4>
<p> <em class="parameter"><code>parasite</code></em>
flags.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gimp-parasite-name"></a><h3>gimp_parasite_name ()</h3>
<pre class="programlisting">const <span class="returnvalue">gchar</span> *
gimp_parasite_name (<em class="parameter"><code>const <a class="link" href="GimpParasite.html" title="GimpParasite"><span class="type">GimpParasite</span></a> *parasite</code></em>);</pre>
<div class="refsect3">
<a name="gimp-parasite-name.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>parasite</p></td>
<td class="parameter_description"><p>a <a class="link" href="GimpParasite.html" title="GimpParasite"><span class="type">GimpParasite</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-parasite-name.returns"></a><h4>Returns</h4>
<p> <em class="parameter"><code>parasite</code></em>
's name.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gimp-parasite-data"></a><h3>gimp_parasite_data ()</h3>
<pre class="programlisting"><span class="returnvalue">gconstpointer</span>
gimp_parasite_data (<em class="parameter"><code>const <a class="link" href="GimpParasite.html" title="GimpParasite"><span class="type">GimpParasite</span></a> *parasite</code></em>);</pre>
<p>Gets the parasite's data. It may not necessarily be text, nor is it
guaranteed to be <code class="literal">NULL</code>-terminated. It is your responsibility to also
call <a class="link" href="GimpParasite.html#gimp-parasite-data-size" title="gimp_parasite_data_size ()"><code class="function">gimp_parasite_data_size()</code></a> and to know how to deal with this
data.</p>
<div class="refsect3">
<a name="gimp-parasite-data.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>parasite</p></td>
<td class="parameter_description"><p>a <a class="link" href="GimpParasite.html" title="GimpParasite"><span class="type">GimpParasite</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-parasite-data.returns"></a><h4>Returns</h4>
<p> <em class="parameter"><code>parasite</code></em>
's data.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gimp-parasite-data-size"></a><h3>gimp_parasite_data_size ()</h3>
<pre class="programlisting"><span class="returnvalue">glong</span>
gimp_parasite_data_size (<em class="parameter"><code>const <a class="link" href="GimpParasite.html" title="GimpParasite"><span class="type">GimpParasite</span></a> *parasite</code></em>);</pre>
<div class="refsect3">
<a name="gimp-parasite-data-size.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>parasite</p></td>
<td class="parameter_description"><p>a <a class="link" href="GimpParasite.html" title="GimpParasite"><span class="type">GimpParasite</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-parasite-data-size.returns"></a><h4>Returns</h4>
<p> <em class="parameter"><code>parasite</code></em>
's data size.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="GIMP-IS-PARAM-SPEC-PARASITE:CAPS"></a><h3>GIMP_IS_PARAM_SPEC_PARASITE()</h3>
<pre class="programlisting">#define GIMP_IS_PARAM_SPEC_PARASITE(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GIMP_TYPE_PARAM_PARASITE))
</pre>
</div>
<hr>
<div class="refsect2">
<a name="gimp-param-spec-parasite"></a><h3>gimp_param_spec_parasite ()</h3>
<pre class="programlisting"><span class="returnvalue">GParamSpec</span> *
gimp_param_spec_parasite (<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
                          <em class="parameter"><code>const <span class="type">gchar</span> *nick</code></em>,
                          <em class="parameter"><code>const <span class="type">gchar</span> *blurb</code></em>,
                          <em class="parameter"><code><span class="type">GParamFlags</span> flags</code></em>);</pre>
<p>Creates a new <span class="type">GimpParamSpecParasite</span> specifying a
<a class="link" href="GimpParasite.html#GIMP-TYPE-PARASITE:CAPS" title="GIMP_TYPE_PARASITE"><span class="type">GIMP_TYPE_PARASITE</span></a> property.</p>
<p>See <code class="function">g_param_spec_internal()</code> for details on property names.</p>
<div class="refsect3">
<a name="gimp-param-spec-parasite.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>name</p></td>
<td class="parameter_description"><p>Canonical name of the property specified.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>nick</p></td>
<td class="parameter_description"><p>Nick name of the property specified.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>blurb</p></td>
<td class="parameter_description"><p>Description of the property specified.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>flags</p></td>
<td class="parameter_description"><p>Flags for the property specified.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-param-spec-parasite.returns"></a><h4>Returns</h4>
<p>The newly created <span class="type">GimpParamSpecParasite</span>. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-4.html#api-index-2.4">2.4</a></p>
</div>
<hr>
<div class="refsect2">
<a name="GIMP-VALUE-HOLDS-PARASITE:CAPS"></a><h3>GIMP_VALUE_HOLDS_PARASITE()</h3>
<pre class="programlisting">#define GIMP_VALUE_HOLDS_PARASITE(value) (G_TYPE_CHECK_VALUE_TYPE ((value), GIMP_TYPE_PARASITE))
</pre>
</div>
</div>
<div class="refsect1">
<a name="GimpParasite.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="GimpParasite-struct"></a><h3>GimpParasite</h3>
<pre class="programlisting">typedef struct {
  gchar    *name;
  guint32   flags;
  guint32   size;
  gpointer  data;
} GimpParasite;
</pre>
<div class="refsect3">
<a name="GimpParasite.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="struct_members_name">
<col class="struct_members_description">
<col width="200px" class="struct_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="struct_member_name"><p><span class="type">gchar</span> *<em class="structfield"><code><a name="GimpParasite-struct.name"></a>name</code></em>;</p></td>
<td class="struct_member_description"><p>the parasite name, USE A UNIQUE PREFIX</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><span class="type">guint32</span> <em class="structfield"><code><a name="GimpParasite-struct.flags"></a>flags</code></em>;</p></td>
<td class="struct_member_description"><p>the parasite flags, like save in XCF etc.</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><span class="type">guint32</span> <em class="structfield"><code><a name="GimpParasite-struct.size"></a>size</code></em>;</p></td>
<td class="struct_member_description"><p>the parasite size in bytes</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><span class="type">gpointer</span> <em class="structfield"><code><a name="GimpParasite-struct.data"></a>data</code></em>;</p></td>
<td class="struct_member_description"><p>the parasite data, the owner os the parasite is responsible
for tracking byte order and internal structure</p></td>
<td class="struct_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="GIMP-PARASITE-PERSISTENT:CAPS"></a><h3>GIMP_PARASITE_PERSISTENT</h3>
<pre class="programlisting">#define GIMP_PARASITE_PERSISTENT 1
</pre>
</div>
<hr>
<div class="refsect2">
<a name="GIMP-PARASITE-UNDOABLE:CAPS"></a><h3>GIMP_PARASITE_UNDOABLE</h3>
<pre class="programlisting">#define GIMP_PARASITE_UNDOABLE   2
</pre>
</div>
<hr>
<div class="refsect2">
<a name="GIMP-PARASITE-ATTACH-PARENT:CAPS"></a><h3>GIMP_PARASITE_ATTACH_PARENT</h3>
<pre class="programlisting">#define GIMP_PARASITE_ATTACH_PARENT     (0x80 &lt;&lt; 8)
</pre>
</div>
<hr>
<div class="refsect2">
<a name="GIMP-PARASITE-PARENT-PERSISTENT:CAPS"></a><h3>GIMP_PARASITE_PARENT_PERSISTENT</h3>
<pre class="programlisting">#define GIMP_PARASITE_PARENT_PERSISTENT (GIMP_PARASITE_PERSISTENT &lt;&lt; 8)
</pre>
</div>
<hr>
<div class="refsect2">
<a name="GIMP-PARASITE-PARENT-UNDOABLE:CAPS"></a><h3>GIMP_PARASITE_PARENT_UNDOABLE</h3>
<pre class="programlisting">#define GIMP_PARASITE_PARENT_UNDOABLE   (GIMP_PARASITE_UNDOABLE &lt;&lt; 8)
</pre>
</div>
<hr>
<div class="refsect2">
<a name="GIMP-PARASITE-ATTACH-GRANDPARENT:CAPS"></a><h3>GIMP_PARASITE_ATTACH_GRANDPARENT</h3>
<pre class="programlisting">#define GIMP_PARASITE_ATTACH_GRANDPARENT     (0x80 &lt;&lt; 16)
</pre>
</div>
<hr>
<div class="refsect2">
<a name="GIMP-PARASITE-GRANDPARENT-PERSISTENT:CAPS"></a><h3>GIMP_PARASITE_GRANDPARENT_PERSISTENT</h3>
<pre class="programlisting">#define GIMP_PARASITE_GRANDPARENT_PERSISTENT (GIMP_PARASITE_PERSISTENT &lt;&lt; 16)
</pre>
</div>
<hr>
<div class="refsect2">
<a name="GIMP-PARASITE-GRANDPARENT-UNDOABLE:CAPS"></a><h3>GIMP_PARASITE_GRANDPARENT_UNDOABLE</h3>
<pre class="programlisting">#define GIMP_PARASITE_GRANDPARENT_UNDOABLE   (GIMP_PARASITE_UNDOABLE &lt;&lt; 16)
</pre>
</div>
<hr>
<div class="refsect2">
<a name="GIMP-TYPE-PARASITE:CAPS"></a><h3>GIMP_TYPE_PARASITE</h3>
<pre class="programlisting">#define GIMP_TYPE_PARASITE               (gimp_parasite_get_type ())
</pre>
</div>
<hr>
<div class="refsect2">
<a name="GIMP-TYPE-PARAM-PARASITE:CAPS"></a><h3>GIMP_TYPE_PARAM_PARASITE</h3>
<pre class="programlisting">#define GIMP_TYPE_PARAM_PARASITE           (gimp_param_parasite_get_type ())
</pre>
</div>
</div>
<div class="refsect1">
<a name="GimpParasite.see-also"></a><h2>See Also</h2>
<p>gimp_image_parasite_attach(),
<a href="/local/head/share/gtk-doc/html/libgimp/libgimp-gimpdrawable.html#gimp-drawable-parasite-attach"><code class="function">gimp_drawable_parasite_attach()</code></a>, <a href="/local/head/share/gtk-doc/html/libgimp/libgimp-gimp.html#gimp-parasite-attach"><code class="function">gimp_parasite_attach()</code></a>
and their related functions.</p>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.33.0</div>
</body>
</html>